package yunquan.wang.modules.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import yunquan.wang.base.domain.IdEntity;
@Entity
@Table(name = "base_report_parameter")
public class ReportParameter extends IdEntity {
	@Column(name = "name",length=30)
	private String name;//名称
	@Column(name = "resoucename",length=50)
	private	String resourceName;//国际化名称
	@Column(name = "type",length=3)
	private	Integer type;//Integer,String ,Date
	@Column(name = "fromtype",length=3)
	private	Integer fromtype;//来源，input,session,expression
	@Column(name = "inorout",length=1)
	private Integer inorout;//1.in,2,out.3.inout
	@Column(name = "value",length=20)
	private	String value;
	@Column(name = "default_value",length=20)
	private	String defaultValue;//default Value
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "report_id")
	private Report report;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getResourceName() {
		return resourceName;
	}
	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getFromtype() {
		return fromtype;
	}
	public void setFromtype(Integer fromtype) {
		this.fromtype = fromtype;
	}
 
	public Integer getInorout() {
		return inorout;
	}
	public void setInorout(Integer inorout) {
		this.inorout = inorout;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public Report getReport() {
		return report;
	}
	public void setReport(Report report) {
		this.report = report;
	}
 

}
